<?php
if (!isset($_COOKIE['user'])) {
    echo "<script type='text/javascript'>location.href = 'http://www.zongxiao.me/';</script>";
}
?>
<!DOCTYPE html>
<html>
    <head>        
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link href="<?php echo HTTP_UI; ?>css/gongyong.css" type="text/css" rel="stylesheet" />
    </head>
    <body>
        <div class="wangzhan"><a href="<?php echo DOMAIN_NAME_WWW; ?>" target="_self"><p>网站后台</p></a></div>
        <div class="logo"></div>
        <div class="top_user">
            <ul>
                <li style="width: 280px;">您好！<strong><?php echo $_COOKIE['user']['name']; ?>,</strong><?php echo '登录时间：' . date('Y年m月d日,H:i:s'); ?></li>
                <li><a href="<?php echo DOMAIN_NAME_WWW; ?>" target="_blank">网站首页</a></li>
                <li><a href="<?php echo DOMAIN_NAME_WWW; ?>/index.php?C=Xitong&A=huanying&way=aa">欢迎页</a></li>
                <li><a onclick="return confirm('您确定退出后台系统吗？')" href="index.php?C=Xitong&A=loginOut" target="_self">安全退出</a></li>
            </ul>                 
        </div>       
        <div class="diyinei">
            <div class="one_left">  
                <div class="one_right">
                    <div class="bottom_xitong">
                        <?php foreach (parent::$main_menu_list as $ls) { ?>
                            <a href="<?php echo '?C=' . $ls['Fclass'] . '&A=' . $ls['Ffunction'] . '&way=' . $ls['Fway']; ?>" class="<?php echo (parent::$main_menu_id  == $ls['Fid']) ? 'bg_color' : ''; ?>"><?php echo $ls['Fname']; ?></a>
                        <?php } ?>
                    </div>
                </div>
            </div>
        </div>
        <div class="all_main">
            <div class="module_left">
                <?php include PATH_VIEW . 'left.php'; ?>
            </div>
        </div>
    </body>
</html>
<script src="<?php echo HTTP_UI; ?>js/jquery-1.11.1.min.js" type="text/javascript"></script>
<script src="<?php echo HTTP_UI; ?>js/gongyong.js" type="text/javascript"></script>